import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner num = new Scanner(System.in);
        while(num.hasNextDouble()){
            double a = num.nextDouble();
            double b = num.nextDouble();
            double c = num.nextDouble();
            double del = b*b-4*a*c;
            double x1 = 0.0;
            double x2 = 0.0;
            if(del == 0){
                System.out.printf("x1=x2=%.2f\n"+((-b)/(2*a)));
            }else if(del>0){
                x1 = ((-b)+Math.sqrt(del))/(2*a);
                x2 = ((-b)-Math.sqrt(del))/(2*a);
                double max = (a>b)?a:b;
                double min = (a<b)?a:b;
                System.out.printf("x1=%.2f\n"+min+"x2=%.2f\n"+max);
            }else{
                x1 = ((-b)+Math.sqrt(-del))/(2*a);
                x2 = ((-b)-Math.sqrt(-del))/(2*a);
            }
        }
    }
}
